#include #include using namespace std; void main() { char s1[100]; cin >> s1; char s2[100]; //cin >> s2; //strcpy(s2,s1+3); //cout << s2 << endl; //write a stringAppend function that takes 2 arguments, //the second should be appended to the first //append to s2, s1 //strncat(s2,s1,4); //cout << s2 << endl; //strncpy(s2,s1,4); //s2[4] = '\0'; //cout<< s2 << endl; //cout << strlen(s1); //if(strnicmp(s1,s2,4) == 0) //{ // cout << s1 << " and " << s2 << " match" << endl; //} //else if(strnicmp(s1,s2,4) > 0) //{ // cout << s1 << " comes after " << s2 << endl; //} //else //{ // cout << s1 << " comes before " << s2 << endl; //} //char password[100]; // //do //{ // cout << "password:"; // cin >> password; //} //while(strcmp(password, "banana") != 0); }